/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package queenb.net.entitybean;

import java.io.Serializable;
import java.sql.Date;
import oracle.jdbc.OracleTypes;
import queenb.net.annotation.Mapping;
import queenb.net.datacontrol.DataControl;

/**
 *
 * @author VANANH
 */
public class N350 extends DataControl<N350> implements Serializable {

    @Mapping(name = "PN350", typeMapping = OracleTypes.INTEGER)
    private int PN350;
    @Mapping(name = "FN100", typeMapping = OracleTypes.INTEGER)
    private int FN100;
    @Mapping(name = "NV351", typeMapping = OracleTypes.CHAR)
    private String nv351;
    @Mapping(name = "ND352", typeMapping = OracleTypes.DATE)
    private Date nd352;
    @Mapping(name = "nd353", typeMapping = OracleTypes.DATE)
    private Date nd353;
    @Mapping(name = "NV354", typeMapping = OracleTypes.CHAR)
    private String nv354;
    @Mapping(name = "NN355", typeMapping = OracleTypes.INTEGER)
    private int NN355;
    @Mapping(name = "FH00", typeMapping = OracleTypes.INTEGER)
    private int FH000;
    @Mapping(name = "FH200", typeMapping = OracleTypes.INTEGER)
    private int FH200;
    @Mapping(name = "pn100", typeMapping = OracleTypes.INTEGER)
    private int pn100;
    @Mapping(name = "NV367", typeMapping = OracleTypes.CHAR)
    private String nv367;//pvLogin
    private String demo;

    /**
     * @return the PN350
     */
    public int getPN350() {
        return PN350;
    }

    /**
     * @param PN350 the PN350 to set
     */
    public void setPN350(int PN350) {
        this.PN350 = PN350;
    }

    /**
     * @return the FN100
     */
    public int getFN100() {
        return FN100;
    }

    /**
     * @param FN100 the FN100 to set
     */
    public void setFN100(int FN100) {
        this.FN100 = FN100;
    }

    /**
     * @return the nv351
     */
    public String getNv351() {
        return nv351;
    }

    /**
     * @param nv351 the nv351 to set
     */
    public void setNv351(String nv351) {
        this.nv351 = nv351;
    }

    /**
     * @return the nv354
     */
    public String getNv354() {
        return nv354;
    }

    /**
     * @param nv354 the nv354 to set
     */
    public void setNv354(String nv354) {
        this.nv354 = nv354;
    }

    /**
     * @return the FH000
     */
    public int getFH000() {
        return FH000;
    }

    /**
     * @param FH000 the FH000 to set
     */
    public void setFH000(int FH000) {
        this.FH000 = FH000;
    }

    /**
     * @return the FH200
     */
    public int getFH200() {
        return FH200;
    }

    /**
     * @param FH200 the FH200 to set
     */
    public void setFH200(int FH200) {
        this.FH200 = FH200;
    }

    /**
     * @return the nv367
     */
    public String getNv367() {
        return nv367;
    }

    /**
     * @param nv367 the nv367 to set
     */
    public void setNv367(String nv367) {
        this.nv367 = nv367;
    }

    /**
     * @return the nd352
     */
    public Date getNd352() {
        return nd352;
    }

    /**
     * @param nd352 the nd352 to set
     */
    public void setNd352(Date nd352) {
        this.nd352 = nd352;
    }

    /**
     * @return the nd353
     */
    public Date getNd353() {
        return nd353;
    }

    /**
     * @param nd353 the nd353 to set
     */
    public void setNd353(Date nd353) {
        this.nd353 = nd353;
    }

    /**
     * @return the NN355
     */
    public int getNN355() {

        return NN355;
    }

    /**
     * @param NN355 the NN355 to set
     */
    public void setNN355(int NN355) {
        this.NN355 = NN355;
    }

    /**
     * @return the demo
     */
    public String getDemo() {
        try{
        if(getNN355() == 1){
                       demo = "CMND";
                    }
         else if (getNN355() == 2)
                    {
                        demo = "Passport";
                    }
        }catch(Exception e){
            demo = "CMND";
        }
        return demo;
    }

    /**
     * @param demo the demo to set
     */
    public void setDemo(String demo) {
        this.demo = demo;
    }

    /**
     * @return the pn100
     */
    public int getPn100() {
        return pn100;
    }

    /**
     * @param pn100 the pn100 to set
     */
    public void setPn100(int pn100) {
        this.pn100 = pn100;
    }
}
